Java NIO: How to Always Overwrite an Existing File Because sometimes the destructive path is the only path.
Java NIO: Tighten Your Code With the deleteIfExists() method Don't write any more lines of code than you need to.